Changing mechanical ventilation mode